{template "mheader.html"}

<div class="portlet light ">
	<div class="portlet-title tabbable-line">
		<ul class="nav nav-tabs" style="float:left;">
			{loop $module_memu $i $t}
			<li class="{if $mcid==$i}active{/if}">
				<a href="{$t.url}"> <i class="{$t.icon}"></i> {$t.name} </a>
			</li>
			{/loop}
		</ul>
	</div>
	<div class="portlet-body">

<form class="form-horizontal" role="form" id="myform">
	{dr_form_hidden()}
	<div class="table-scrollable">
		<table class="table table-striped table-bordered table-hover table-checkable dataTable">
			<thead>
			<tr class="heading">
				<th class="myselect">
					<label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
						<input type="checkbox" class="group-checkable" data-set=".checkboxes" />
						<span></span>
					</label>
				</th>
				<th width="200" class="{dr_sorting('name')}" name="name">{dr_lang('名称')}</th>
				<th width="100" class="{dr_sorting('valuation')}" name="valuation">{dr_lang('计价方式')}</th>
				<th>{dr_lang('操作')}</th>
			</tr>
			</thead>
			<tbody>
			{loop $list $t}
			<tr class="odd gradeX" id="dr_row_{$t.id}">
				<td class="myselect">
					<label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
						<input type="checkbox" class="checkboxes" name="ids[]" value="{$t.id}" />
						<span></span>
					</label>
				</td>
				<td>{$t.name}</td>
				<td>{$valuation_type[$t.valuation]}</td>
				<td>
					<label><a href="{dr_member_url($uriprefix.'/edit', ['id'=>$t.id])}" class="btn btn-xs green"> <i class="fa fa-edit"></i> {dr_lang('修改')}</a></label>

				</td>
			</tr>
			{/loop}
			</tbody>
		</table>
	</div>

	<div class="row fc-list-footer table-checkable ">
		<div class="col-md-5 fc-list-select">
		<label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
			<input type="checkbox" class="group-checkable" data-set=".checkboxes" />
			<span></span>
		</label>
		<button type="button" onclick="dr_ajax_option('{dr_member_url($uriprefix.'/del')}', '{dr_lang('你确定要删除它们吗？')}', 1)" class="btn red btn-sm"> <i class="fa fa-trash"></i> {dr_lang('删除')}</button>

		</div>
	</div>
</form>


	</div>
</div>
{template "mfooter.html"}